package com.gfv.facturas.controladores;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.web.servlet.mvc.SimpleFormController;

import com.gfv.facturas.dao.FacturasDAO;
import com.gfv.facturas.dao.PersonasDAO;

public class FacturaControlador extends SimpleFormController{
	protected final Log logger = LogFactory.getLog(getClass());
	private FacturasDAO fdao;
	private PersonasDAO pdao;
	protected int getIdUsuario(HttpServletRequest request){
		HttpSession sesion = request.getSession(false);
		return (Integer) sesion.getAttribute("uid");
	}
	public FacturasDAO getFDao() {
		return fdao;
	}
	public void setFDao(FacturasDAO dao) {
		fdao = dao;
	}
	public PersonasDAO getPDao() {
		return pdao;
	}
	public void setPDao(PersonasDAO pdao) {
		this.pdao = pdao;
	}

}
